package com.xcf.service.business.common.internaltradebase.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.internaltradebase.InternalTradeBaseService;
import com.xcf.util.PageData;
@Service
public class InternalTradeBaseServiceImpl implements InternalTradeBaseService{
	@Resource
	private DaoSupport dao;
	@Override
	public List<Map> findInfo(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<Map>) dao.findForList("internalTradeBase.findInfo", pd);
	}
	@Override
	public void saveInfo(PageData pd) throws Exception {
		dao.save("internalTradeBase.saveInfo", pd);
		
	}
	@Override
	public void updateInfo(PageData pd) throws Exception {
		dao.update("internalTradeBase.updateInfo", pd);
		
	}
	@Override
	public void deletInfo(PageData pd) throws Exception {
		dao.delete("internalTradeBase.deleteInfo", pd);
		
	}
	@Override
	public PageData findInfoByInfo(PageData pd) throws Exception {
		
		return (PageData) dao.findForObject("internalTradeBase.findInfoByInfo", pd);
	}
	@Override
	public void updateInfoByInfo(PageData pd) throws Exception {
		dao.update("internalTradeBase.updateInfoByInfo", pd);
		
	}

}
